package com.jack.orderDemo;

/**
 * 测试类
 */
public class Test {
    public static void main(String[] args) {
        Goods goods1 = new Goods("小米手机", 3000, 1001);
        Goods goods2 = new Goods("苹果手机", 4980, 1002);
        Goods goods3 = new Goods("魅族手机", 3800, 1003);
        Goods[] goods ={goods1,goods2,goods3};

        Order order = new Order();
        order.setGoods(goods);
        order.setUser(new User("张三"));

        System.out.println(order);






    }
}
